import logging

LOG_LEVEL = logging.INFO

DEBUG = True
LOGGGER_NAMES = ['userauth', 'sendsms']
SECRET_KEY = 'kZ0QJOlVRJBVbdfjCo5EG74pOSgh2tbZxfh5KWF19r8cz4XBZ7KBKR0beDJxObwt'


ALLOWED_HOSTS = ['*']

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'usercenter',
        'USER': 'root',
        'PASSWORD': 'root',
        'HOST': 'mysql',
        'PORT': '3306',
        'OPTIONS': {'charset': 'utf8mb4'},
    }
}

# cache settings
CACHES = {
    "default": {
        "BACKEND": "django_redis.cache.RedisCache",
        "LOCATION": "redis://redis",
        'TIMEOUT': 300,
        'OPTIONS': {
            'DB': 0,
        }
    },
}

CELERY_BROKER_URL = 'redis://redis/0'
CELERY_RESULT_BACKEND = 'redis://redis:6379/0'
CELERY_TIMEZONE = 'Asia/Shanghai'
CELERY_ACCEPT_CONTENT = {'json', 'pickle'}

# RAVEN
RAVEN_CONFIG = {
    # 'dsn': 'https://6e627daeda314f7e88307d6c3beaf4ce:262ac52098a74b7fa2880f6fa6c8edd9@sentry.qixincha.com/47',
}

STATSD_HOST = '10.9.255.51'
STATSD_PORT = 8125
